export const doAdd = (data) => {
	return uni.$uv.http.post('/product/saveOrUpdate', data)
}

export const doProductList = (data) => {
	return uni.$uv.http.post('/product/getProductList', data)
}


export const doDetail = (id) => {
	return uni.$uv.http.get(`/product/getInfo/${id}`)
}

export const doList = (params) => {
	return uni.$uv.http.get('/product/getUserList', {
		params
	})
}

export const doUpdShelves = (data) => {
	return uni.$uv.http.post('/product/userUpdShelves', data)
}

export const doUpdSort = (data) => {
	return uni.$uv.http.post('/product/userUpdStock', data)
}

export const doDels = (data) => {
	return uni.$uv.http.post('/product/del', data)
}